package org.example;

import org.junit.Test;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Stream;

/**
 * @author : liwq
 * @version : 1.0
 * @date : 2023/2/16
 **/
public class StreamTest {

    @Test
    public void test1() {
        List<Integer> l = new ArrayList<>();
        for (int i = 0; i < 100; i++) {
            l.add(i);
        }
        Stream<Integer> stream = l.stream().filter((e) -> {
            return e > 90;

        });
        stream.forEach(System.out::println);


    }
}
